package com.yysoft.dubbo.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yysoft.dubbo.api.IDemoService;

//import com.alibaba.dubbo.config.annotation.Reference;

@Controller
public class ConsumerController {

//	@Reference
	@Autowired
	private IDemoService demoService;
	
	@RequestMapping("/test")
	@ResponseBody
	public void test() throws Exception {
		String string = demoService.sayHi("你好！");
		System.out.println(string);
	}
	
}
